<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			const arr = [1, 2, 3, 4, 5]
			const sum = arr.reduce((pre, item) => {
			    return pre + item
			}, 0)
			console.log(sum)
		</script>
	</head>
	<body>
	</body>
</html>
